//
//  DataCrmDetailCell.m
//  New_Runway
//
//  Created by mack on 2018/4/9.
//  Copyright © 2018年 NelsonJ. All rights reserved.
//

#import "DataCrmDetailCell.h"

@interface DataCrmDetailCell ()
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UILabel *phoneLabel;
@property (weak, nonatomic) IBOutlet UILabel *adressLabel;
@property (weak, nonatomic) IBOutlet UILabel *levelLabel;
@property (weak, nonatomic) IBOutlet UILabel *timeLabel;

@end

@implementation DataCrmDetailCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.nameLabel.textColor = self.phoneLabel.textColor = self.adressLabel.textColor = self.levelLabel.textColor = MAIN_FONT_COLOR();
    self.timeLabel.textColor = UIColorHex(0x989898);
    self.levelLabel.text = @"用户等级：";
}
-(void)setResult:(dataDetailResult *)result{
    _result = result;
    self.nameLabel.text = result.customerName;
    self.phoneLabel.text = result.customerPhone;
    if (isEmptyOrNilString(result.levelTxt) == YES) {
        self.levelLabel.text = @"用户等级：";
    }else{
        self.levelLabel.text = [NSString stringWithFormat:@"用户等级：%@",result.levelTxt];
    }
    self.adressLabel.text  = result.cityName;
    self.timeLabel.text = result.createdTime;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
